<!-- 详情页----顶部的搜索框，点击跳转功能未实现 -->
<template>
  <div class="box">
    <span class="iconfont icon-fanhui" @click="tui"></span>
    <span >天天抽iPhone 12</span>
    <span class="iconfont icon-zhuye2" @click="goh"></span>
    <span class="iconfont icon-fenxiang"></span>
  </div>
</template>

<script>
export default {
  name: "Search",
  data() {
    return {};
  },
  methods:{
    tui(){
      this.$router.go(-1);
    },
    goh(){
      this.$router.push("/Home");
    }
  }
};
</script>

<style scoped>
@import url(../assets/font_2617715_6v9jnn2bb0y/iconfont.css);
.box {
  width: 3.75rem;
  height: 0.4rem;
  background-color: white;
  position:fixed;
  top: 0;
  border-bottom: 0.01rem solid gainsboro;
  z-index:6;
}
.box>span:nth-child(2){
    width: 2.28rem;
    height: 0.3rem;
    background-color:#EDEDED;
    outline: none;
    border: 0; 
    border-radius: 0.15rem;
    font-size: 0.13rem;
    text-align: left;
    line-height: 0.3rem;
    text-indent: 0.3rem;
    color: gray;
    position: absolute;
    left: 0.45rem;
    top: 0.05rem;
    background-image: url(../assets/picture/fangdajing.png);
    background-repeat: no-repeat;
    background-size: 0.23rem 0.23rem;
    background-position:0.04rem 0.03rem;
}
.box>span{
    display: inline-block;
    width: 0.45rem;
    height: 100%;
    text-align: center;
    line-height: 0.4rem;
    position: absolute;
    color:black;
    font-size: 0.18rem;
}
.box>span:nth-child(1){
    left: 0;
}
.box>span:nth-child(3){
    left: 2.85rem;
}
.box>span:nth-child(4){
    right: 0.05rem;
}
</style>